package com.azure.jvm;
/***
 * JVM 设置  -Xss128k  -Xss 默认1M
 * 模拟栈溢出
 */
public class StackOverFlowTest {
    static int count = 0;

    static void redo(){
        count++;
        redo();
    }

    public static void main(String[] args) {
        try {
            redo();
        }catch (Throwable e){
            e.printStackTrace();
            System.out.println(count);
        }

    }
}
